<!--
 * @Author: 詹真琦(legendryztachi@gmail.com)
 * @Date: 2022-04-08 09:57:59
 * @LastEditors: 詹真琦(legendryztachi@gmail.com)
 * @LastEditTime: 2022-04-08 10:40:26
 * @FilePath: \code\cwp-front\pc-collaboration\src\handles\handle-list\modules\summary\continue-submit\components\chooseHandle.vue
 * @Description: 选择节点
-->
<script>
  export default {
    name: 'ChooseHandle',
    props: {
      //选中值
      value: {
        type: String
      },
      //选项列表
      options: {
        type: Array
      }
    },
    render() {
      return (
        <div>
          <div>{this.$i18n('collaboration.disagreeDeal.alert.1')}</div>
          <div>
            <a-radio-group
              defaultValue={this.value}
              onChange={({ target: { value } }) => this.$emit('input', value)}>
              {this.options.map(({ subject }, index) => (
                <a-radio value={index}>{subject}</a-radio>
              ))}
            </a-radio-group>
          </div>
        </div>
      );
    }
  };
</script>
